package br.com.single.publico;

import br.com.single.modelo.estoque.Cdnatureoperac;
import br.com.single.modelo.estoque.Cdprodut;
import br.com.single.modelo.estoque.Mvfrete;
import br.com.single.modelo.estoque.Mvmovimecompra;
import br.com.single.modelo.estoque.Mvmovimevenda;
import br.com.single.modelo.estoque.Mvnotafiscal;

import java.util.Date;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import org.springframework.roo.addon.dbre.RooDbManaged;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord(identifierType = CditemtabelageneriPK.class, versionField = "", table = "cditemtabelageneri", schema = "publico")
@RooDbManaged(automaticallyDelete = true)
public class Cditemtabelageneri {

	@OneToMany(mappedBy = "cditemtabelageneri")
    private Set<Cdnatureoperac> cdnatureoperacs;

	@OneToMany(mappedBy = "cditemtabelageneri1")
    private Set<Cdnatureoperac> cdnatureoperacs1;

	@OneToMany(mappedBy = "cditemtabelageneri2")
    private Set<Cdnatureoperac> cdnatureoperacs2;

	@OneToMany(mappedBy = "cditemtabelageneri")
    private Set<Cdprodut> cdproduts;

	@OneToMany(mappedBy = "cditemtabelageneri1")
    private Set<Cdprodut> cdproduts1;

	@OneToMany(mappedBy = "cditemtabelageneri2")
    private Set<Cdprodut> cdproduts2;

	@OneToMany(mappedBy = "cditemtabelageneri3")
    private Set<Cdprodut> cdproduts3;

	@OneToMany(mappedBy = "cditemtabelageneri4")
    private Set<Cdprodut> cdproduts4;

	@OneToMany(mappedBy = "cditemtabelageneri5")
    private Set<Cdprodut> cdproduts5;

	@OneToMany(mappedBy = "cditemtabelageneri")
    private Set<Mvfrete> mvfretes;

	@OneToMany(mappedBy = "cditemtabelageneri1")
    private Set<Mvfrete> mvfretes1;

	@OneToMany(mappedBy = "cditemtabelageneri2")
    private Set<Mvfrete> mvfretes2;

	@OneToMany(mappedBy = "cditemtabelageneri")
    private Set<Mvmovimecompra> mvmovimecompras;

	@OneToMany(mappedBy = "cditemtabelageneri1")
    private Set<Mvmovimecompra> mvmovimecompras1;

	@OneToMany(mappedBy = "cditemtabelageneri")
    private Set<Mvmovimevenda> mvmovimevendas;

	@OneToMany(mappedBy = "cditemtabelageneri1")
    private Set<Mvmovimevenda> mvmovimevendas1;

	@OneToMany(mappedBy = "cditemtabelageneri2")
    private Set<Mvmovimevenda> mvmovimevendas2;

	@OneToMany(mappedBy = "cditemtabelageneri")
    private Set<Mvnotafiscal> mvnotafiscals;

	@OneToMany(mappedBy = "cditemtabelageneri")
    private Set<Cdclient> cdclients;

	@OneToMany(mappedBy = "cditemtabelageneri1")
    private Set<Cdclient> cdclients1;

	@OneToMany(mappedBy = "cditemtabelageneri2")
    private Set<Cdclient> cdclients2;

	@OneToMany(mappedBy = "cditemtabelageneri3")
    private Set<Cdclient> cdclients3;

	@OneToMany(mappedBy = "cditemtabelageneri")
    private Set<Cdfornec> cdfornecs;

	@OneToMany(mappedBy = "cditemtabelageneri1")
    private Set<Cdfornec> cdfornecs1;

	@OneToMany(mappedBy = "cditemtabelageneri2")
    private Set<Cdfornec> cdfornecs2;

	@OneToMany(mappedBy = "cditemtabelageneri3")
    private Set<Cdfornec> cdfornecs3;

	@OneToMany(mappedBy = "cditemtabelageneri4")
    private Set<Cdfornec> cdfornecs4;

	@OneToMany(mappedBy = "cditemtabelageneri5")
    private Set<Cdfornec> cdfornecs5;

	@OneToMany(mappedBy = "cditemtabelageneri")
    private Set<Cdrepres> cdrepreses;

	@OneToMany(mappedBy = "cditemtabelageneri1")
    private Set<Cdrepres> cdrepreses1;

	@OneToMany(mappedBy = "cditemtabelageneri2")
    private Set<Cdrepres> cdrepreses2;

	@OneToMany(mappedBy = "cditemtabelageneri3")
    private Set<Cdrepres> cdrepreses3;

	@OneToMany(mappedBy = "cditemtabelageneri4")
    private Set<Cdrepres> cdrepreses4;

	@ManyToOne
    @JoinColumn(name = "codigotabela", referencedColumnName = "codigotabela", nullable = false, insertable = false, updatable = false,columnDefinition="bpchar")
    private Cdtabelageneri codigotabela;

	@Column(name = "descrielemen",columnDefinition="nomegrande")
    @NotNull
    private String descrielemen;

	@Column(name = "apendielemen",columnDefinition="nomereduzi")
    @NotNull
    private String apendielemen;

	@Column(name = "valorelemen",columnDefinition="valorsimple")
    private String valorelemen;

	@Column(name = "dataelemen",columnDefinition="data")
	@Temporal(TemporalType.DATE)
    private Date dataelemen;

	@Column(name = "observelemen", length = 100)
    private String observelemen;

	public Set<Cdnatureoperac> getCdnatureoperacs() {
        return cdnatureoperacs;
    }

	public void setCdnatureoperacs(Set<Cdnatureoperac> cdnatureoperacs) {
        this.cdnatureoperacs = cdnatureoperacs;
    }

	public Set<Cdnatureoperac> getCdnatureoperacs1() {
        return cdnatureoperacs1;
    }

	public void setCdnatureoperacs1(Set<Cdnatureoperac> cdnatureoperacs1) {
        this.cdnatureoperacs1 = cdnatureoperacs1;
    }

	public Set<Cdnatureoperac> getCdnatureoperacs2() {
        return cdnatureoperacs2;
    }

	public void setCdnatureoperacs2(Set<Cdnatureoperac> cdnatureoperacs2) {
        this.cdnatureoperacs2 = cdnatureoperacs2;
    }

	public Set<Cdprodut> getCdproduts() {
        return cdproduts;
    }

	public void setCdproduts(Set<Cdprodut> cdproduts) {
        this.cdproduts = cdproduts;
    }

	public Set<Cdprodut> getCdproduts1() {
        return cdproduts1;
    }

	public void setCdproduts1(Set<Cdprodut> cdproduts1) {
        this.cdproduts1 = cdproduts1;
    }

	public Set<Cdprodut> getCdproduts2() {
        return cdproduts2;
    }

	public void setCdproduts2(Set<Cdprodut> cdproduts2) {
        this.cdproduts2 = cdproduts2;
    }

	public Set<Cdprodut> getCdproduts3() {
        return cdproduts3;
    }

	public void setCdproduts3(Set<Cdprodut> cdproduts3) {
        this.cdproduts3 = cdproduts3;
    }

	public Set<Cdprodut> getCdproduts4() {
        return cdproduts4;
    }

	public void setCdproduts4(Set<Cdprodut> cdproduts4) {
        this.cdproduts4 = cdproduts4;
    }

	public Set<Cdprodut> getCdproduts5() {
        return cdproduts5;
    }

	public void setCdproduts5(Set<Cdprodut> cdproduts5) {
        this.cdproduts5 = cdproduts5;
    }

	public Set<Mvfrete> getMvfretes() {
        return mvfretes;
    }

	public void setMvfretes(Set<Mvfrete> mvfretes) {
        this.mvfretes = mvfretes;
    }

	public Set<Mvfrete> getMvfretes1() {
        return mvfretes1;
    }

	public void setMvfretes1(Set<Mvfrete> mvfretes1) {
        this.mvfretes1 = mvfretes1;
    }

	public Set<Mvfrete> getMvfretes2() {
        return mvfretes2;
    }

	public void setMvfretes2(Set<Mvfrete> mvfretes2) {
        this.mvfretes2 = mvfretes2;
    }

	public Set<Mvmovimecompra> getMvmovimecompras() {
        return mvmovimecompras;
    }

	public void setMvmovimecompras(Set<Mvmovimecompra> mvmovimecompras) {
        this.mvmovimecompras = mvmovimecompras;
    }

	public Set<Mvmovimecompra> getMvmovimecompras1() {
        return mvmovimecompras1;
    }

	public void setMvmovimecompras1(Set<Mvmovimecompra> mvmovimecompras1) {
        this.mvmovimecompras1 = mvmovimecompras1;
    }

	public Set<Mvmovimevenda> getMvmovimevendas() {
        return mvmovimevendas;
    }

	public void setMvmovimevendas(Set<Mvmovimevenda> mvmovimevendas) {
        this.mvmovimevendas = mvmovimevendas;
    }

	public Set<Mvmovimevenda> getMvmovimevendas1() {
        return mvmovimevendas1;
    }

	public void setMvmovimevendas1(Set<Mvmovimevenda> mvmovimevendas1) {
        this.mvmovimevendas1 = mvmovimevendas1;
    }

	public Set<Mvmovimevenda> getMvmovimevendas2() {
        return mvmovimevendas2;
    }

	public void setMvmovimevendas2(Set<Mvmovimevenda> mvmovimevendas2) {
        this.mvmovimevendas2 = mvmovimevendas2;
    }

	public Set<Mvnotafiscal> getMvnotafiscals() {
        return mvnotafiscals;
    }

	public void setMvnotafiscals(Set<Mvnotafiscal> mvnotafiscals) {
        this.mvnotafiscals = mvnotafiscals;
    }

	public Set<Cdclient> getCdclients() {
        return cdclients;
    }

	public void setCdclients(Set<Cdclient> cdclients) {
        this.cdclients = cdclients;
    }

	public Set<Cdclient> getCdclients1() {
        return cdclients1;
    }

	public void setCdclients1(Set<Cdclient> cdclients1) {
        this.cdclients1 = cdclients1;
    }

	public Set<Cdclient> getCdclients2() {
        return cdclients2;
    }

	public void setCdclients2(Set<Cdclient> cdclients2) {
        this.cdclients2 = cdclients2;
    }

	public Set<Cdclient> getCdclients3() {
        return cdclients3;
    }

	public void setCdclients3(Set<Cdclient> cdclients3) {
        this.cdclients3 = cdclients3;
    }

	public Set<Cdfornec> getCdfornecs() {
        return cdfornecs;
    }

	public void setCdfornecs(Set<Cdfornec> cdfornecs) {
        this.cdfornecs = cdfornecs;
    }

	public Set<Cdfornec> getCdfornecs1() {
        return cdfornecs1;
    }

	public void setCdfornecs1(Set<Cdfornec> cdfornecs1) {
        this.cdfornecs1 = cdfornecs1;
    }

	public Set<Cdfornec> getCdfornecs2() {
        return cdfornecs2;
    }

	public void setCdfornecs2(Set<Cdfornec> cdfornecs2) {
        this.cdfornecs2 = cdfornecs2;
    }

	public Set<Cdfornec> getCdfornecs3() {
        return cdfornecs3;
    }

	public void setCdfornecs3(Set<Cdfornec> cdfornecs3) {
        this.cdfornecs3 = cdfornecs3;
    }

	public Set<Cdfornec> getCdfornecs4() {
        return cdfornecs4;
    }

	public void setCdfornecs4(Set<Cdfornec> cdfornecs4) {
        this.cdfornecs4 = cdfornecs4;
    }

	public Set<Cdfornec> getCdfornecs5() {
        return cdfornecs5;
    }

	public void setCdfornecs5(Set<Cdfornec> cdfornecs5) {
        this.cdfornecs5 = cdfornecs5;
    }

	public Set<Cdrepres> getCdrepreses() {
        return cdrepreses;
    }

	public void setCdrepreses(Set<Cdrepres> cdrepreses) {
        this.cdrepreses = cdrepreses;
    }

	public Set<Cdrepres> getCdrepreses1() {
        return cdrepreses1;
    }

	public void setCdrepreses1(Set<Cdrepres> cdrepreses1) {
        this.cdrepreses1 = cdrepreses1;
    }

	public Set<Cdrepres> getCdrepreses2() {
        return cdrepreses2;
    }

	public void setCdrepreses2(Set<Cdrepres> cdrepreses2) {
        this.cdrepreses2 = cdrepreses2;
    }

	public Set<Cdrepres> getCdrepreses3() {
        return cdrepreses3;
    }

	public void setCdrepreses3(Set<Cdrepres> cdrepreses3) {
        this.cdrepreses3 = cdrepreses3;
    }

	public Set<Cdrepres> getCdrepreses4() {
        return cdrepreses4;
    }

	public void setCdrepreses4(Set<Cdrepres> cdrepreses4) {
        this.cdrepreses4 = cdrepreses4;
    }

	public Cdtabelageneri getCodigotabela() {
        return codigotabela;
    }

	public void setCodigotabela(Cdtabelageneri codigotabela) {
        this.codigotabela = codigotabela;
    }

	public String getDescrielemen() {
        return descrielemen;
    }

	public void setDescrielemen(String descrielemen) {
        this.descrielemen = descrielemen;
    }

	public String getApendielemen() {
        return apendielemen;
    }

	public void setApendielemen(String apendielemen) {
        this.apendielemen = apendielemen;
    }

	public String getValorelemen() {
        return valorelemen;
    }

	public void setValorelemen(String valorelemen) {
        this.valorelemen = valorelemen;
    }

	public Date getDataelemen() {
        return dataelemen;
    }

	public void setDataelemen(Date dataelemen) {
        this.dataelemen = dataelemen;
    }

	public String getObservelemen() {
        return observelemen;
    }

	public void setObservelemen(String observelemen) {
        this.observelemen = observelemen;
    }
}
